Skip to content

Conversation

@minggangw
Copy link
Member

@minggangw minggangw commented Jul 17, 2025

This PR adds comprehensive README documentation for each example directory, providing users with clear instructions, purposes, and code snippets for running and understanding the examples.

  • Introduce README files for all example categories (topics, services, rosidl, rate, parameter, lifecycle, graph, actions)
  • Detail purpose, functionality, features, run commands, and expected outputs for each example
  • Include key concepts, troubleshooting tips, and advanced patterns in the documentation

Fix: #1198

@minggangw minggangw requested a review from Copilot July 17, 2025 04:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive README documentation for each example directory, providing users with clear instructions, purposes, and code snippets for running and understanding the examples.

  • Introduce README files for all example categories (topics, services, rosidl, rate, parameter, lifecycle, graph, actions)
  • Detail purpose, functionality, features, run commands, and expected outputs for each example
  • Include key concepts, troubleshooting tips, and advanced patterns in the documentation

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
example/topics/README.md Added overview and usage instructions for topic examples
example/services/README.md Added overview and usage instructions for service examples
example/rosidl/README.md Added examples of ROSIDL parsing with explanations
example/rate/README.md Added rate control example documentation
example/parameter/README.md Added parameter handling example documentation
example/lifecycle/README.md Added lifecycle node example with state machine details
example/graph/README.md Added graph introspection examples and sample output
example/actions/README.md Added action client and server example documentation
Comments suppressed due to low confidence (4)

example/graph/README.md:101

  • [nitpick] Including comments (// ...) inside a code block for sample output may confuse readers. Consider replacing it with an ellipsis (...) or explanatory text outside the fenced block.
  // ... other built-in node services

example/graph/README.md:117

  • [nitpick] The 'CLIENTS BY NODE' sample output structure is inconsistent with the 'PUBLISHERS BY NODE' and 'SUBSCRIPTIONS BY NODE' sections, which group entries by node. Consider aligning the client output to include node identifiers and an info array for clarity.
  {

example/rate/README.md:94

  • [nitpick] The example command omits the leading slash on the topic name. For consistency with ROS 2 conventions, it should be ros2 topic echo /topic std_msgs/msg/String.
ros2 topic echo topic std_msgs/msg/String

example/lifecycle/README.md:184

  • The example references this._StateInterface, which isn't defined. It should use the correct lifecycle state reference, for example rclnodejs.lifecycle.State.PRIMARY_STATE or import the appropriate StateInterface.
  if (prevState.id === this._StateInterface.PRIMARY_STATE) {

@minggangw minggangw merged commit a53c1d0 into RobotWebTools:develop Jul 18, 2025
56 of 70 checks passed
minggangw added a commit that referenced this pull request Jul 22, 2025
This PR adds comprehensive README documentation for each example directory, providing users with clear instructions, purposes, and code snippets for running and understanding the examples.

- Introduce README files for all example categories (topics, services, rosidl, rate, parameter, lifecycle, graph, actions)
- Detail purpose, functionality, features, run commands, and expected outputs for each example
- Include key concepts, troubleshooting tips, and advanced patterns in the documentation

Fix: #1198
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add README for exampe

1 participant